<template>

</template>

<script>
    import {mapActions} from "vuex";

    export default {
        name: "packCheck",
        data() {
            return {}
        },
        methods: {
          ...mapActions({
            switchFrame: 'frameSwitch'
          }),
        },
        async mounted() {
            try {
                let res = await this.$api.get('/getHttpUrl/PACKCHECK');
                
                  //let url = `http://localhost:8086/rtxext/InitPage1?whseid=${this.$store.state.wms}&users=${this.$Cookies.get('user')}&opeuser=${this.$Cookies.get('user')}&locale=zh`;
                  let url = `${res.bean}?whseid=${this.$store.state.wms}&users=${this.$Cookies.get('user')}&opeuser=${this.$Cookies.get('user')}&locale=zh`;
                    //this.$router.push({name: "appiframe", params: {url: url}});
                  this.switchFrame({url: url, sw: false});
                
            } catch (e) {
                this.$message.error(e)
            }

        }
    }
</script>

<style scoped>

</style>
